<?php /* Smarty version Smarty-3.1.8, created on 2012-11-07 17:05:04
         compiled from "E:\www\teraco/templates\admin\product_category\add.temp.html" */ ?>
<?php /*%%SmartyHeaderCode:15761509a94c0ad23c9-60022567%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '6b1babc5e0f714fe5751cb05b26846821cdf9554' => 
    array (
      0 => 'E:\\www\\teraco/templates\\admin\\product_category\\add.temp.html',
      1 => 1351335085,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '15761509a94c0ad23c9-60022567',
  'function' => 
  array (
  ),
  'variables' => 
  array (
    'menu' => 0,
    'infoText' => 0,
    'infoClass' => 0,
    'base_url' => 0,
    'formId' => 0,
    'objectLanguages' => 0,
    'objectlang' => 0,
    'objectInfo' => 0,
    'pid' => 0,
    'listCategories' => 0,
    'listStatus' => 0,
    'slug' => 0,
    'keywords' => 0,
    'position' => 0,
    'home' => 0,
    'op' => 0,
    'act' => 0,
    'oId' => 0,
  ),
  'has_nocache_code' => false,
  'version' => 'Smarty-3.1.8',
  'unifunc' => 'content_509a94c0ce72e7_91153117',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_509a94c0ce72e7_91153117')) {function content_509a94c0ce72e7_91153117($_smarty_tpl) {?><?php if (!is_callable('smarty_function_l')) include 'E:\\www\\teraco\\libraries\\plugins\\function.l.php';
?><style type="text/css">
    .download_files{ float: right; padding-right: 10px;}
    .download_files span{ color: red;}
</style>
<?php $_smarty_tpl->tpl_vars['formId'] = new Smarty_variable('add', null, 0);?>
<div id="content">
    <div class="highlight">
        <?php if (isset($_smarty_tpl->tpl_vars['menu']->value)){?><?php echo $_smarty_tpl->tpl_vars['menu']->value;?>
<?php }?>
        <?php if ($_smarty_tpl->tpl_vars['infoText']->value){?>
            <div class="<?php echo $_smarty_tpl->tpl_vars['infoClass']->value;?>
">
                <h4>Result:</h4>
                <p><?php echo $_smarty_tpl->tpl_vars['infoText']->value;?>
</p>
            </div>
        <?php }?>
        <?php echo $_smarty_tpl->getSubTemplate ("admin/toolbar.temp.html", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array('title'=>'toolbar'), 0);?>
     
        <div class="formType">
            <form action="<?php echo $_smarty_tpl->tpl_vars['base_url']->value;?>
" method="post" id="<?php echo $_smarty_tpl->tpl_vars['formId']->value;?>
" name="<?php echo $_smarty_tpl->tpl_vars['formId']->value;?>
" enctype="multipart/form-data">
                <fieldset>
                	<div class="left">
                    	<div class="titles"><?php echo smarty_function_l(array('s'=>'infoneed'),$_smarty_tpl);?>
</div>  
			<div style="clear:both;">
                            <ul class="tabs">
                                <li class="tab"><?php echo smarty_function_l(array('s'=>'Product Information'),$_smarty_tpl);?>
</>
                                <li class="tab"><?php echo smarty_function_l(array('s'=>'Background'),$_smarty_tpl);?>
</li>
                                <?php if ($_smarty_tpl->tpl_vars['objectLanguages']->value){?>
                                    <?php  $_smarty_tpl->tpl_vars['objectlang'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['objectlang']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['objectLanguages']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
 $_smarty_tpl->tpl_vars['objectlang']->index=-1;
foreach ($_from as $_smarty_tpl->tpl_vars['objectlang']->key => $_smarty_tpl->tpl_vars['objectlang']->value){
$_smarty_tpl->tpl_vars['objectlang']->_loop = true;
 $_smarty_tpl->tpl_vars['objectlang']->index++;
 $_smarty_tpl->tpl_vars['objectlang']->first = $_smarty_tpl->tpl_vars['objectlang']->index === 0;
?> 
                                        <li class="tab <?php if ($_smarty_tpl->tpl_vars['objectlang']->first){?>selected<?php }?>"><?php echo $_smarty_tpl->tpl_vars['objectlang']->value->getField('name');?>
</li>
                                    <?php } ?>
                                <?php }?>
                            </ul>
                            <div class="tabcontent">
                                <p>
                                    <span><?php echo smarty_function_l(array('s'=>'Please choice a file for warranty of this category...'),$_smarty_tpl);?>
</span>
                                    <?php if (is_object($_smarty_tpl->tpl_vars['objectInfo']->value)){?>
                                        <?php if ($_smarty_tpl->tpl_vars['objectInfo']->value->getField('file1')!=''){?>
                                        <a class="download_files" target="_blank" href="<?php echo $_smarty_tpl->tpl_vars['objectInfo']->value->getFullUrlFile('file1');?>
"><span><?php echo smarty_function_l(array('s'=>'Click here to download this file'),$_smarty_tpl);?>
</span></a>
                                        <?php }?>
                                    <?php }?>
                                    <input type="file" name="file1" id="file1" />
                                </p>
                                <p>
                                    <span><?php echo smarty_function_l(array('s'=>'Please choice a file for brochure of this category...'),$_smarty_tpl);?>
</span>
                                    <?php if (is_object($_smarty_tpl->tpl_vars['objectInfo']->value)){?>
                                        <?php if ($_smarty_tpl->tpl_vars['objectInfo']->value->getField('file2')!=''){?>
                                            <a class="download_files" href="<?php echo $_smarty_tpl->tpl_vars['objectInfo']->value->getFullUrlFile('file2');?>
"><span><?php echo smarty_function_l(array('s'=>'Click here to download this file'),$_smarty_tpl);?>
</span></a>
                                        <?php }?>
                                    <?php }?>
                                    <input type="file" name="file2" id="file2" />
                                </p>
                                <p>
                                    <span><?php echo smarty_function_l(array('s'=>'Please choice a file for quick guide of this category...'),$_smarty_tpl);?>
</span>
                                    <?php if (is_object($_smarty_tpl->tpl_vars['objectInfo']->value)){?>
                                        <?php if ($_smarty_tpl->tpl_vars['objectInfo']->value->getField('file3')!=''){?>
                                            <a class="download_files" href="<?php echo $_smarty_tpl->tpl_vars['objectInfo']->value->getFullUrlFile('file3');?>
"><span><?php echo smarty_function_l(array('s'=>'Click here to download this file'),$_smarty_tpl);?>
</span></a>
                                        <?php }?>
                                    <?php }?>
                                    <input type="file" name="file3" id="file3" />
                                </p>
                                <br class="clear">
                            </div>
                            <div class="tabcontent">
                                <p>
                                    <span><?php echo smarty_function_l(array('s'=>'Please choice a background for this news...'),$_smarty_tpl);?>
</span>
                                    <?php if (is_object($_smarty_tpl->tpl_vars['objectInfo']->value)){?>
                                        <?php if ($_smarty_tpl->tpl_vars['objectInfo']->value->getField('background')!=''){?>
                                            <img src="<?php echo $_smarty_tpl->tpl_vars['objectInfo']->value->getFullUrlBackGround();?>
" style="max-width: 696px; max-height: 400px;" /><br /><br />
                                        <?php }?>
                                    <?php }?>
                                    <input type="file" name="background" id="background" />
                                </p>
                                <br class="clear">
                            </div>
                            <?php if ($_smarty_tpl->tpl_vars['objectLanguages']->value){?>
                                <?php  $_smarty_tpl->tpl_vars['objectlang'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['objectlang']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['objectLanguages']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
 $_smarty_tpl->tpl_vars['objectlang']->index=-1;
foreach ($_from as $_smarty_tpl->tpl_vars['objectlang']->key => $_smarty_tpl->tpl_vars['objectlang']->value){
$_smarty_tpl->tpl_vars['objectlang']->_loop = true;
 $_smarty_tpl->tpl_vars['objectlang']->index++;
 $_smarty_tpl->tpl_vars['objectlang']->first = $_smarty_tpl->tpl_vars['objectlang']->index === 0;
?> 
                                    
                                    <div class="tabcontent <?php if ($_smarty_tpl->tpl_vars['objectlang']->first){?>selected<?php }?>">
                                        <p>
                                            <label for="name"><?php echo smarty_function_l(array('s'=>'name'),$_smarty_tpl);?>
 *</label>
                                            <span><?php echo smarty_function_l(array('s'=>'name_help'),$_smarty_tpl);?>
</span>
                                            <input type="text" name="<?php echo $_smarty_tpl->tpl_vars['objectlang']->value->getField('code');?>
_name" value="<?php echo $_smarty_tpl->tpl_vars['objectInfo']->value->getFieldLangAdmin($_smarty_tpl->tpl_vars['objectlang']->value->getField('code'),'name');?>
" />
                                        </p>
                                        <p>
                                            <label for="abstract"><?php echo smarty_function_l(array('s'=>'abstract'),$_smarty_tpl);?>
 *</label>
                                            <span><?php echo smarty_function_l(array('s'=>'abstract_help'),$_smarty_tpl);?>
</span>
                                            <textarea name="<?php echo $_smarty_tpl->tpl_vars['objectlang']->value->getField('code');?>
_abstract" class="mceSimple" style="width:97%"><?php echo $_smarty_tpl->tpl_vars['objectInfo']->value->getFieldLangAdmin($_smarty_tpl->tpl_vars['objectlang']->value->getField('code'),'abstract');?>
</textarea>
                                        </p> 
                                        <p>
                                            <label for="details"><?php echo smarty_function_l(array('s'=>'details'),$_smarty_tpl);?>
 *</label>
                                            <span><?php echo smarty_function_l(array('s'=>'details_help'),$_smarty_tpl);?>
</span>
                                            <textarea name="<?php echo $_smarty_tpl->tpl_vars['objectlang']->value->getField('code');?>
_details" class="mceAdvanced" style="width:97%"><?php echo $_smarty_tpl->tpl_vars['objectInfo']->value->getFieldLangAdmin($_smarty_tpl->tpl_vars['objectlang']->value->getField('code'),'details');?>
</textarea>
                                        </p>      
                                        <br class="clear">
                                    </div>
                                <?php } ?>
                            <?php }?>
                        </div>
					</div>
                    <div class="right">  
                    	<div class="titles"><?php echo smarty_function_l(array('s'=>'infononeed'),$_smarty_tpl);?>
</div> 
                        <div id="accordion">
                            
                            <div class="title"><?php echo smarty_function_l(array('s'=>'properties'),$_smarty_tpl);?>
</div>
                            
                            <div class="content">
                                <!--<input type="hidden" name="cid" value="<?php echo $_smarty_tpl->tpl_vars['pid']->value;?>
" />-->
                                <p>
                                    <label for="cid"><?php echo smarty_function_l(array('s'=>'parent'),$_smarty_tpl);?>
 *</label>
                                    <span><?php echo smarty_function_l(array('s'=>'parent_help'),$_smarty_tpl);?>
</span>
                                    <select name="cid">
                                    <option value="<?php echo $_smarty_tpl->tpl_vars['pid']->value;?>
">/</option>
                                        <?php echo $_smarty_tpl->tpl_vars['listCategories']->value;?>

                                    </select>
                                </p>                              
                                <p>
                                    <label for="status"><?php echo smarty_function_l(array('s'=>'status'),$_smarty_tpl);?>
 *</label>
                                    <span><?php echo smarty_function_l(array('s'=>'status_help'),$_smarty_tpl);?>
</span>
                                    <select name="status">
	                                    <?php echo $_smarty_tpl->tpl_vars['listStatus']->value;?>

                                    </select>
                                </p> 
<!--                                                                                                  
                                <p>
                                    <label for="slug"><?php echo smarty_function_l(array('s'=>'slug'),$_smarty_tpl);?>
</label>
                                    <span><?php echo smarty_function_l(array('s'=>'slug_help'),$_smarty_tpl);?>
</span>
                                    <input type="text" name="slug" value="<?php echo $_smarty_tpl->tpl_vars['slug']->value;?>
" />
                                </p> 
-->
                                <p>
                                    <label for="vn_name"><?php echo smarty_function_l(array('s'=>'keywords'),$_smarty_tpl);?>
 *</label>
                                    <span><?php echo smarty_function_l(array('s'=>'keywords_help'),$_smarty_tpl);?>
</span>
                                    <input type="text" id="keywords" name="keywords" value="<?php echo $_smarty_tpl->tpl_vars['keywords']->value;?>
" />
                                </p> 
                                <p>
                                    <label for="vn_name"><?php echo smarty_function_l(array('s'=>'position'),$_smarty_tpl);?>
 *</label>
                                    <span><?php echo smarty_function_l(array('s'=>'position_help'),$_smarty_tpl);?>
</span>
                                    <input type="text" id="position" name="position" value="<?php echo $_smarty_tpl->tpl_vars['position']->value;?>
" />
                                </p>  
                                <p class="radioType">
                                    <input type="checkbox" name="home" <?php if ($_smarty_tpl->tpl_vars['home']->value==1){?>checked="checked"<?php }?> value="1">
                                    <label for="home"><?php echo smarty_function_l(array('s'=>'home'),$_smarty_tpl);?>
</label><br>
                                     <span><?php echo smarty_function_l(array('s'=>'home_help'),$_smarty_tpl);?>
</span>
                                </p> 
                            </div>
                            
                        </div>
                                                                 
					</div>
                    <div class="over">                        
                        <p class="btnType">
                            <input type="hidden" id="op"  name="op" value="<?php echo $_smarty_tpl->tpl_vars['op']->value;?>
" />
                            <input type="hidden" id="act" name="act" value="<?php echo $_smarty_tpl->tpl_vars['act']->value;?>
" />                        
                            <input type="hidden" id="pid" name="pid" value="<?php echo $_smarty_tpl->tpl_vars['pid']->value;?>
" />
                            <input type="hidden" id="oId" name="oId" value="<?php echo $_smarty_tpl->tpl_vars['oId']->value;?>
" />
                            <input type="hidden" id="plus" name="plus" value="saveItem" />
                        </p>
					</div>                        
                </fieldset>
            </form>
        </div>
    </div>
</div><?php }} ?>